/*
 * Copyright (c) xxxx-xxxx, Huan
 * SPDX-License-Identifier: Apache-2.0
 *
 * bilibili UID:179895513
 *
 * Date           Author       Notes
 * 2023-04-27     Huan       the first version
 */
#ifndef APPLICATIONS_HEADER_FILE_SCREEN_H_
#define APPLICATIONS_HEADER_FILE_SCREEN_H_

typedef enum
{
    None = 0,
    Left,
    Right,
    Upon
}Screen_state;
typedef enum
{
    Red     = 0xF800,
    Green   = 0x07E0,
    Blue    = 0x001F,
    White   = 0xFFFF,
    Black   = 0x0000,
    Yellow  = 0xFFE0,
    Gray    = 0X8430,
    Brown   = 0XBC40,
    Purple  = 0XF81F,
    Pink    = 0XFE19
}Screen_color;

typedef struct
{
    uint16_t  image_buffer[7680];
    uint16_t  count;
}Image_bufTypedef;

typedef struct
{
    Screen_state ScrenDir;
    void (*clear)(Screen_color color);
    void (*show_img)(void);

}Screen_HandleTypedef;
extern Screen_HandleTypedef Screen_TFT22Handle;

#endif /* APPLICATIONS_HEADER_FILE_SCREEN_H_ */
